

        
        
        if(!sessionStorage.first || performance.navigation.type == 1){
            firstTimeDelay = 8000;
        }else{
            firstTimeDelay = 4000;
        }
        console.log(firstTimeDelay);
        var footageMoveDelay = setTimeout(function(){
            $('main .index .content .footage .box').removeClass('over');
            $('main .index .opacityPic h1').removeClass('over');
            $('.leaving.btm').removeClass('over');
        },firstTimeDelay);

        $(document).ready(function(){
            $('main .index .content .footage .box').mouseenter(function(){
                if(window.innerWidth < 768) return false;
                if($('main .index .content .footage .box')[0].className.indexOf('over') < 0){
                    $(this).addClass('over');
                    $('main .index .opacityPic h1').addClass('over');
                    $('.leaving.btm').addClass('over');
                }
                clearTimeout(footageMoveDelay);
                footageMoveDelay = null;
            });

            $('main .index .content .footage .box').mouseleave(function(){
                var This = $(this);
                footageMoveDelay = setTimeout(function(){
                    This.removeClass('over');
                    $('.leaving.btm').removeClass('over');
                    $('main .index .opacityPic h1').removeClass('over');
                },3000);
            })
            $('main .index .content .footage .box .item').click(function(){
                if(window.innerWidth >= 768){
                    $(this).find('a')[0].click();
                }else if(window.innerWidth < 768){
                    if($(this).parent()[0].className.indexOf('over') >= 0){
                        $(this).find('a')[0].click();
                        console.log('c');
                    }
                }
                if($('main .index .content .footage .box')[0].className.indexOf('over') < 0){
                    $('main .index .content .footage .box').addClass('over');
                    $('main .index .opacityPic h1').addClass('over');
                    $('.leaving.btm').addClass('over');
                }
                clearTimeout(footageMoveDelay);
                footageMoveDelay = null;
                footageMoveDelay = setTimeout(function(){
                    $('main .index .content .footage .box').removeClass('over');
                    $('.leaving.btm').removeClass('over');
                    $('main .index .opacityPic h1').removeClass('over');
                },3000);
            })
        })